use chrono::Utc;

pub fn now() -> i64 {
    Utc::now().timestamp_millis()
}

pub fn ttl(timestamp_millis: i64) -> i64 {
    now() - timestamp_millis
}